Add configurable fixed event ranges (kf75/kf76/mf98/mf99) to top-page period selector#3
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/ut-code/visitor-tracker/sessions/5abfa2c6-1428-435a-977e-877c343bb1d4 Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
na-trium-144
May 19, 2026 17:02
View session
Agent-Logs-Url: https://github.com/ut-code/visitor-tracker/sessions/201e326c-73cc-4a46-a566-212ed7521241 Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
aster-void
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
トップページの期間セレクタにイベント期間(kf75/kf76/mf98/mf99)を追加し、選択時に指定されたJST終日レンジのデータを表示できるようにします。あわせて、同種の期間追加をUI/API両面で一箇所変更に集約できる構成へ整理します。
Time range definitions (single source of truth)
view/src/lib/consts.tsにTIME_RANGE_OPTIONS/DEFAULT_TIME_RANGE_KEY/resolveTimeRangeByKeyを追加。2025-05-24T00:00:00+09:00~2025-05-26T00:00:00+09:00)。Top page selector and fetch contract
view/src/routes/+page.svelteの期間セレクタをハードコードからTIME_RANGE_OPTIONSの描画に変更。duration直接値からrangeキー送信へ変更(/visits?kind=...&range=...)。duration/lastFetchはresolveTimeRangeByKeyの解決結果から設定。Server-side filtering for fixed and relative ranges
view/src/routes/visits/+server.tsをrangeキー解釈に対応。gte(at, start)+lt(at, end)にし、固定期間の 0:00〜24:00(日跨ぎ終端除外)を正確に表現。